<template>
  <div>
    <van-search v-model="value" placeholder="请输入搜索关键词" @focus="change" />
    <div v-if="show" >1</div>
  </div>
</template>

<script setup>
import { reactive, ref } from 'vue';

const state = reactive({
  
})
const show = ref(false)  
const change = () => {
  console.log(1);
  show.value = true
}
</script>

<style lang="less" scoped></style>
<style>
.van-search {
  width: 100%;
  position: fixed;
  top: 0;
}
</style>